
class Vehicle:
    maxspeed = 180
    def info(self):   #输出车辆信息
        print(f"Brand: {self.brand}")
        print(f"PlateNumber: {self.number} ")
        print(f"Color: {self.color}")
        return

    def run(self,current_speed):  #完成车辆启动，并显示当前速度
        if current_speed <= 0:
            self.speed = 0
            print("Vehicle is not running")
            return
        elif current_speed <=self.maxspeed:
            self.speed = current_speed
        else:
            self.speed = self.maxspeed
        print(f"Vehicle is running at speed: {self.speed}KM/H")
        return
    
    def __init__(self,vinfo):   #初始化车辆信息
        self.brand = vinfo["brand"]
        self.number = vinfo["number"]
        self.color = vinfo["color"]
        self.speed = 0
        return


def main():
    car1Info = {"brand":"Audi","number":"粤B12345","color":"White"}
    car1 = Vehicle(car1Info)
    car1.info()
    car1.run(0)
    car1.run(120)
    car1.run(200)
if __name__ == "__main__":
    main()
